package com.lx.ngsl.core.role.repository;

import java.util.List;
import java.util.Optional;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import com.lx.ngsl.core.role.entity.RoleEntity;


public interface RoleRepository extends JpaRepository<RoleEntity,String>{
	
	Optional<RoleEntity> findById(String roleId);
	
	Page<RoleEntity> findAll(Specification<RoleEntity> spec, Pageable pageable);
	
	List<RoleEntity> findByName(String name);
}
